class core {
	constructor(conf){
		this.modules = conf && conf.modules || {};
		this.path = __dirname;
		this.corePath = `${this.path}/index`;
		this.libPath = `${this.path}/lib/index`;
		this.staticPath = `${this.path}/static/index`;
		this.use = {};
	}
	init(){
		// 加载必要模块
		let staticModules = require(this.staticPath);
		// 根据配置加载模块
		let libModules = require(this.staticPath);
		for(let modelName in this.modules){
			let modelPath = `${this.libPath}/${modelName}/index`;
			let modelCore = require(modelPath);
			let keys = Object.keys(this.modules[modelName]);
			let ret = new modelCore(keys);
		}
	}
	src(){

	}
	log(){
		console.log(this)
	}
}
(new core()).log();